<template>
  <div class="recommend">
    <div class="recommend-item" v-for="item in recommends" :key="item.sort">
      <router-link :to="item.link" >
        <img :src="item.image" alt="" />
        <span>{{ item.title }}</span>
      </router-link>
    </div>
  </div>
</template>
<script>
export default {
  name: "recommendView",
  props: {
    recommends: {
      type: [Array, String],
    },
  },
};
</script>
<style lang="scss" scoped>
.recommend {
  display: flex;
  font-size: 14px;
  padding:10px 0 30px;
  border-bottom: 10px solid #eee;
  .recommend-item {
    flex: 1;
    text-align: center;
    img {
      width: 80px;
      height: 80px;
      margin-bottom: 10px;
    }
    span{
      display: block;
    }
  }
}
</style>
